import os
from time import sleep

os.system('d:')
sleep(0.5)
os.system('cd D:\\apache-jmeter-5.3\\bin')
sleep(0.5)
os.system('del D:\\apache-jmeter-5.3\\bin\\jtl\\result.jtl')
sleep(0.5)
os.system('jmeter -n -t D:\\apache-jmeter-5.3\\bin\\压力测试.jmx -l result.jtl -o D:\\apache-jmeter-5.3\\bin\\jtl')
sleep(0.5)
os.system('jmeter -g D:\\apache-jmeter-5.3\\bin\\jtl\\result.jtl -o D:\\apache-jmeter-5.3\\bin\\report')
